package com.sofeteem.ikun.model;

import java.awt.*;

public class Enemy {

    private int x;
    private int y;
    private int width;
    private int height;
    private int health;
    private int speed;

    public Enemy(int x, int y) {
        this.x = x;
        this.y = y;
        this.width = 30;
        this.height = 30;
        this.health = 100;
        this.speed = 2;
    }

    public void move() {
        y += speed;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public int getHealth() {
        return health;
    }

    public void takeDamage(int damage) {
        health -= damage;
    }

    public Rectangle getBounds() {
        return new Rectangle(x, y, width, height);
    }
}
